import React from 'react'
import { DownOutlined } from '@ant-design/icons';
import { Dropdown, Space } from 'antd';
import {history}from '@umijs/max'
require ('./index.less')
const items = [
    {
        label: '个人门户',
        key: '/home',
    },
    {
        label: '租户门户',
        key: '/stu',
    },
    {
        label: '供应商门户',
        key: '/tood',
    },
  
];
const index = () => {
    function onClick(e){
        history.push(e.key)
    }
    return (
        <div className='nav'>

        <Dropdown
            menu={{
                items,
                onClick:onClick
            }}
           
        >
                <Space>
                   个人门户
                    <DownOutlined />
                </Space>
           
        </Dropdown>
        </div>
    )
}

export default index